package org.jeecg.modules.scm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.EnableDict;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: scm_supply_chain
 * @Author: jeecg-boot
 * @Date:   2021-10-30
 * @Version: V1.0
 */
@Data
@TableName("scm_supply_chain")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="scm_supply_chain对象", description="scm_supply_chain")
public class ScmSupplyChain implements Serializable, EnableDict {
    private static final long serialVersionUID = 1L;

	/**核心客户号*/
	@Excel(name = "核心客户号", width = 15)
    @ApiModelProperty(value = "核心客户号")
    @Dict(dictTable = "scm_cus_info",dicCode = "cus_no",dicText = "cus_name")
    private Integer coreCusNo;
	/**项目编号*/
	@Excel(name = "项目编号", width = 15)
    @ApiModelProperty(value = "项目编号")
    @Dict(dictTable = "scm_item",dicCode = "item_id",dicText = "item_name")
    private Integer itemId;
	/**上下游客户号*/
	@Excel(name = "上下游客户号", width = 15)
    @ApiModelProperty(value = "上下游客户号")
    @Dict(dictTable = "scm_cus_info",dicCode = "cus_no",dicText = "cus_name")
    private Integer relevantCusNo;
	/**供应链关联关系*/
	@Excel(name = "供应链关联关系", width = 15)
    @ApiModelProperty(value = "供应链关联关系")
    @Dict(dicCode = "sc_relation")
    private String relationInChain;
	/**状态*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "sc_status")
    private Integer state;
	/**平台所属机构*/
	@Excel(name = "平台所属机构", width = 15)
    @ApiModelProperty(value = "平台所属机构")
    private String platformAffiliation;
	/**平台管户经理*/
	@Excel(name = "平台管户经理", width = 15)
    @ApiModelProperty(value = "平台管户经理")
    private String cusManager;
	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;
	/**建立日期*/
	@Excel(name = "建立日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "建立日期")
    private Date createTime;
	/**建立用户*/
	@Excel(name = "建立用户", width = 15)
    @ApiModelProperty(value = "建立用户")
    private String createBy;
	/**最后修改日期*/
	@Excel(name = "最后修改日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "最后修改日期")
    private Date updateTime;
	/**最后修改用户*/
	@Excel(name = "最后修改用户", width = 15)
    @ApiModelProperty(value = "最后修改用户")
    private String updateBy;
}
